//package com.wzh.easyapi.controller;
//
//import com.wzh.easyapi.base.R;
//import com.wzh.easyapi.form.SQLRequest;
//import com.wzh.easyapi.service.DynamicSQLService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//import java.util.Map;
//
///**
// * sql管理
// */
//@RestController
//@RequestMapping("/sql")
//public class SQLController {
//
//    @Autowired
//    private  DynamicSQLService sqlService;
//
//    /**
//     * 执行sql
//     * @param request
//     * @return
//     */
//    @PostMapping("/execute")
//    public R<List<Map<String, Object>>> executeSQL(@RequestBody sqlManage request) {
//        try {
//            List<Map<String, Object>> result = sqlService.executeSQL(request);
//            return R.ok(result);
//        } catch (Exception e) {
//            return R.fail(e.getMessage());
//        }
//    }
//}
